<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jQuery.min.js"></script>
</head>

<body>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <script>
        $(function () {
            $("div").each(function (index, domEle) {
                //index是索引号
                //domEle是dom对象 $(domEle)转变jQuery对象
            })

            $.each($("div"), function (i, ele) {
                //这个方法主要用于遍历数据
            })
        })
    </script>
</body>

</html>